import request from '@/utils/request'
/*
  封装和楼宇先关的接口函数
*/

// 获取楼栋列表
export function getBuildingListAPI(obj) {
  return request({
    url: '/park/building',
    method: 'GET',
    // data: {},
    params: obj
  })
}

// 新增楼栋
export function addBuildingAPI(obj) {
  return request({
    url: '/park/building',
    method: 'POST',
    data: obj
  })
}

export function delBuildingAPI(id) {
  return request({
    url: '/park/building/' + id,
    method: 'DELETE'
  })
}

export function editBuildingAPI(obj) {
  return request({
    url: '/park/building',
    method: 'PUT',
    data: obj
  })
}
